import request from '@/utils/request';

export function addUser(user) {
    return request.post('/users/add', user);
}

export function deleteUser(userId) {
    return request.delete(`/users/delete/${userId}`);
}

export function updateUser(user) {
    return request.put('/users/update', user);
}

export function getUserById(userId) {
    return request.get(`/users/${userId}`);
}

export function getAllUsers() {
    return request.get('/users/all');
}
